<html>
<head>
<title>IATB setup</title>
<style type="text/css">
.parameterBlock{
	border:1px solid;
	border-color: black;
	padding: 5px;
}
</style>
<link rel="stylesheet" href="resources/stylesheet.css" type="text/css" />
</head>
<body>
<p>Please provide the parameters required to setup the application.<br/>
This script will create the database and generate the main configuration file.<br/>
Please refer to the installation guide for more information.</p>
<h1>Application parameters</h1>
<form method="post" action="setup.php">
<div  class="parameterBlock">
<b>Activity types:</b><input size="60" name="tfActivityTypes" type="text" value="Project,Working group"/></br>
<i>Please provide a list of activity types (comma separated).<br/>
See user guide.</i>
</div>
<br/>
<h1>Technical parameters</h1>
<div class="parameterBlock">
<b>Root path:</b><input name="tfRootPath" type="text" value="/iatb"/></br>
<i>The root path relative which any other resource path is computed.</i>
</div>
<br/>
<div  class="parameterBlock">
<b>Database host:</b><input name="tfDbHost" type="text" value="localhost"/></br>
<b>Database name:</b><input name="tfDbName" type="text" value="iatb"/></br>
<i>The MySQL database configuration.</i>
</div>
<br/>
<div  class="parameterBlock">
<b>Database SETUP user:</b><input name="tfDbSetupUser" type="text" value="root"/></br>
<b>Database SETUP password:</b><input name="tfDbSetupPassword" type="password" value=""/></br>
<i>The user which has rights to create the database.</i>
</div>
<br/>
<div  class="parameterBlock">
<b>Database RUNTIME user:</b><input name="tfDbRuntimeUser" type="text" value="iatb"/></br>
<b>Database RUNTIME password:</b><input name="tfDbRuntimePassword" type="password" value=""/></br>
<i>The user used by the application at runtime (will not be allocated with the right to alter the DB schema).</i>
</div>
<br/>
<div  class="parameterBlock">
<b>Log file:</b><input name="tfLogFilePath" type="text" value="/log"/></br>
<i>The real server path to the log file.</i>
</div>
<br/>
<input type="submit" value="Setup application"/>
</form>
</body>
</html>